Fixed Python2.7 - 3.3 conversion issue