Refactored exceptions.py to avoid name conflict w/ std. lib.