making unit tests compatible with python3