Writing Idiomatic Python 2.7.3