use django's six implimentation