unit test py3k compatible