Initial work on the django port.