Finished porting doctests to unittests
Python2/3 Django pre/post 1.5 compats