Move python files into a module, add bin script