fix syntax error for python3