unittest is inconsistent across python versions