This catches a call to unicode() and removes the unnecessary future import for the print function.
python-modernize (https://github.com/mitsuhiko/python-modernize) is a useful wrapper around 2to3 which comes with sane defaults. The fixes below were generated by running python-modernize --compat-unicode -w . and then fixing all lint errors.
...and repackage profiling middleware.
These can be used to dump profile stats to the console during development.