Use django.utils.six - thanks Jens