How can we fix this? In the first example we can see the problem: {% include file="examples/python/datetime_json_fails.py" %} The first call to json.dumps works ...