It looks like to took care of this by disabling the linter, but if you want to dig into it more, you get information on the status bar when the cursor is on a line with problems. Also, it puts an underscore in the areas of the problems. For example, line 18 has an underscore right before "infile", and the status bar (for my copy of this as a test) indicates, "PEP 8 (E201): whitespace after '('".
While that isn't a true syntax error (as you said, it executes correctly), it is a violation of PEP 8's style guidelines.
Some of the others might involve a mix of tabs and spaces. Looking at the status bar will indicate what it is catching.
Of course, if PEP 8 isn't that important for your needs, leaving the linter disabled may be a better option for you!