Tidied up, started Python module