changed while True: to while 1: for efficiency issues for python 2.7