Basic python3 compatibility, via the 'six' module.

@tarekziade r?
One clean way to do it is to use tox