Python 3.3 fixes.
Python 3.3 fix for management command.