Global variable in Python server,sys.exit()