Implemented warnings properly using warnings package.
General tidy up of import code
Removed deprecated dicts from dicts.py