Remove python 3 syntax for python 2 compatibility