Set up simultaneous python 2/3 compatibility.
py3 compat without six (via @jonashaag)