Python3.4 to Python2.7 changes