added base.py and exception.py and moved MetaBase and exceptions to files respectively.