Closing parentheses should not have any before after them.

Anti-pattern

with open('file.dat' ) as f:
    contents = f.read()

Best practice

with open('file.dat') as f:
    contents = f.read()