remove syntax error and fix for python3