tests: Change assertEquals to be py3k compatible assertEqual.

Signed-off-by: Jelmer Vernooĳ <jelmer@samba.org>
py3k: Go through all uses of itertools and make them work on py3k
py3k: These need to return a value since in Py3k they're no longer void

Python 2.x shouldn't care about it though the signature is void there.

As exhibited in error:

dulwich/_diff_tree.c:449:2: error: non-void function 'init_diff_tree'
should return a value [-Wreturn-type]
setup: Make setup.py also work on py3k on OS X
Add dulwich.greenthreads module.
Remove pylint config.
Add 'flakes' target invoking pyflakes, and fix some pyflakes warnings.
Add pep8 make target and fix some pep8ness.
Add 'make before-push' target.
Stop using more deprecated test methods.
Use for loop instead of map.
NEWS entry for python3 changes.
index: Fix IndexEntry to not include name.
Merge branch 'py3k' of git://github.com/Ormod/dulwich