another take at python 3 compt for unit tests