Check Python version in tests to determine whether to use unicode literals