import os

custom_path = os.path.expanduser('~/user-fixes.py')
if os.path.exists(custom_path):
    with open(custom_path, 'r') as f:
        exec(compile(f.read(), custom_path, 'exec'), globals())

    del f

# Clean up temp variables, since pwb issues a warning otherwise
# to help people catch misspelt config
del custom_path

import os

custom_path = os.path.expanduser('~/user-fixes.py')
if os.path.exists(custom_path):
    with open(custom_path, 'rb') as f:
        exec(compile(f.read(), custom_path, 'exec'), globals())

    del f

# Clean up temp variables, since pwb issues a warning otherwise
# to help people catch misspelt config
del custom_path

Use 'rb' mode for reading files
Use 'rb' mode for reading files

To stick to pwb conventions
