Python 3.3 support with minimal effort

I made all the non-celery tests pass on both Python 2.7 and 3.3 using the same codebase, 
trying to change as little as possible of the code on Python 2.7.