Updated launcher.py to be compatible with older python versions