Compatible with python 3.3

Tested with Django 1.6b2 and python 3.3.1