Updated to support Django 1.4/1.5 along with Python3.