import six


def is_text(value):
    """Return True if the value represents text in both Python 2 and 3.
    
    Parameters
    ----------
    value : str or bytes
        Value to be checked.
    
    Returns
    -------
    bool
        True if the value is a string or bytes array.
    """
    if isinstance(value, bytes) or isinstance(value, six.string_types):
        return True
    else:
        return False