Loads of work, python code made to be all pretty and stuff, though lacking documentation
moar changes