This is not the point you mentioned before, this is located in the file you copied to the local path. Have you corrected the location of the file like @andreas-doehler mentioned?
The syntax error sounds like there is python2 running instead of python 3. I can’t see anything wrong with the syntax for python3.