Update exceptions.py

No file in Python 3! -> use open.