* made test_str friendly to python 2 and 3