get unit tests to pass for python 3