Bugfix: cmd_reset could not determine the mode
Use namedtuple for index entry.
Add porcelain for 'status'.
Add test to make sure unmodified files don't show up in get_unstaged_changes.
Move logic for creating blog from path to dulwich.index.
Use the print() function in Makefile.

Use the print() function rather than the print statement in the
Makefile.
print(): Switch from statement to funtion.
Fix octal literals.
Use io module instead of file.
Use int division `//` insted of float division `/`.
Make next methods available as __next__.
Use assertEqual rather than assertEquals as the latter is deprecated.
Use for loop instead of map when not iterating.

In PY3, map returns an iterator, so the funcion never gets called.
Correctly handle binascii.Error.
In Protocol.read_pkt_line, assert the length of the data read matches the length prefix.
pylint: Fix a large amount of warnings and errors found by pylint

The errors range from indent errors to unused imports.

There's still plenty of things pylint is complaining about but
on pylint's completely bogus scale this improves the score with
pylint 1.1.0 on my machine from 5.37 to 6.79.

While at it, tune .pylintcfg to ignore more issues:
missing method docstring warnings, longer minimum line lengths etc