Git version in Python