adds exception.py file

fixes #54