City Blocks Flyover (CodeEval) in python2.