As you can see I solved the problem 3 years ago using Python 2.5 with psyco.
I did nothing special to read the input, just standard.
I resubmitted my former AC code today - without psyco, of course - and got a NZEC.
I didn't figure out the reason for that. It might be a slight difference between Python 2.5 and 2.7 or corrupt input data.
Another thing: I'm not sure it will be possible to get AC within the timelimit without psyco. But I didn't try.