change to python3.4 syntax