Fix a handful of compatibility problems with Python 3.

Review Request #10255 — Created Oct. 21, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-2.0.x
5d8b9d9...

Reviewers

Unit tests caught a few remaining issues running under Python 3. We had
some string type incompatibilities, changes to how pickling work,
generator vs. list assumptions, and some others. This updates all of
them, allowing the Djblets test suite to fully pass on Python 3.

Unit tests pass on Python 2.7, 3.5, and 3.6.

(Note that some pending changes in Django Evolution are still required
in order to pass.)