Python script to parse 'git log'