Fixes for Python 3.3 compatibility

Nearly same as https://github.com/openpolis/django-popolo/pull/11