Two incompatibilities I've found so far:
django.utils.encoding does not contain
smart_unicode under Python 3.
smart_text is equivalent and available on all Python versions.
function_object.func_code does not exist on Python 3. Should probably use methods from
inspect instead anyway?
There may be more issues -- I gave up for now after hitting the second one. May come back to this later.