move exceptions to exceptions.py