Rewrite GitCommander in python