Python continuously parse console input,sys.stdin.read(1)