[NZEC] in python scripts

Hi

My python solutions are throwing NZEC, which in itself is quite uninformative. And as the same scripts run flawlessly on my local machine, I am completely blinded here.

http://www.codechef.com/viewsolution/6908592

http://www.codechef.com/viewsolution/6908478

Any help would be greatly appreciated.
-A