parentheses for `print`
Return git output as unicode str

Assumes utf-8
Fix octal number syntax

http://www.python.org/dev/peps/pep-3127/
`file()` -> `open()`
Merge branch 'feature/py3-compat' into develop

Now the script runs with both python2 and python3
(tested with 2.7.3 and 3.2.3)

Note that non-ascii filenames are not supported yet
(actually it even produces runtime error with python2)