Git index file parser, using python3