public Map<String, Serializable> createExternalPythonContext(Map<String, Value> context) {
        Map<String, Serializable> pythonContext = new HashMap<>();
        for (Map.Entry<String, ? extends Value> entry : context.entrySet()) {
            pythonContext.put(entry.getKey(), ValueFactory.createPyObjectValueForExternalPython(entry.getValue()));
        }