Fixing issue with gitpython