def __if_not_basestring(text_object):
    """Convert to str"""
    converted_str = text_object
    if not isinstance(text_object, str):
        converted_str = str(text_object)
    return converted_str