Fixes for Python 3.3 compatibility

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