Use Django's six to avoid extra dependency