Edits for Python 3

These are the edits that allow django-fixturemedia to work with Python 3