A weekend project in porting (some of) my Philip library to python