Does the datetime module work in python_script?

@balloob that does not work. Here’s the error:

2017-10-12 15:37:32 ERROR (Thread-4) [homeassistant.components.python_script.time_test.py] Error executing script: '__import__'
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/python_script.py", line 143, in execute
    exec(compiled.code, restricted_globals, local)
  File "time_test.py", line 1, in <module>
KeyError: '__import__'