Pythonisation of code base

Fixing of names
New classes for some things
Restructure of some