port to python3 and django 1.5