Fixes Python 3 syntax error