fix(py3): fix syntax error for python3