Initial splitting of python classes into separate files. Currently not fully working.