Import time in direct.py