fixed: PY3 compatibility

Now works well on Python 3.2.3, Django 1.6.1