Fix various Python 3 compatibility issues.

Conflicts:
	stackexchange/core.py
	stackexchange/web.py
	testsuite.py