Convert from Python2.7 to Python3.3