update pythonfile to 3.4 syntax