Add implementation of terminy.py

also create some new exceptions