Made changes to the python changegroup hook