Fixed standalone.py