for i in range(0, 5): lst.append(ser.readline().rstrip()) if resetVar == False: updateUser(lst) else: if(checkVip(User(lst))): reset() else: gui.updateRFID('INVALID VIP') print("INVALID VIP") resetVar = False if len(userList) > 0 and not pygame.mixer.music.get_busy() and skipBool == False: skip() print 'in skip loop' skipBool = False #create the GUI gui = GUI(resetCallback,pausePlay,skip, quit_callback) thread.start_new(main,('main thread',)) gui.getRoot().wm_protocol('WM_DELETE_WINDOW', quit) gui.getRoot().mainloop()