bugfix: don't write 'exit()', write 'sys.exit()' otherwise it may cause errors