Changed a few imports to make the explicitly relative for python3.
Changed a print statement in the clear_sessions command to support python3.
Updated the logic for returning json responses to work with django 1.7.
Make relative imports explicit for python 3 support.
Since version 1.7 django no longer uses 'mimetype' for HttpResponse
change print statement to work with python3
Very nice thank you. I think the condition would be better put outside of the rendering so it runs only once at startup, but for now, it's good enough. Performance is not the lib strong point anyway.