Support Python 3 using six

Can you explain this and/or add a comment? It's not really clear to me why it is necessary.