Made it work with python3 and django 1.5