Use gitpython instead of raw git commands