Fix python 3 syntax error