docs: def polite_string(a_string):
      """Returns a "proper" string that should work in both Py3/Py2"""
      if is_py3() and hasattr(a_string, 'decode'):
          try:
              return a_string.decode('utf-8')
          except UnicodeDecodeError:
              return a_string
  
      return a_string