access git from within python script