import six


def bytes_to_str(bstr):
    """
    Return string value for supplied bytes
    """
    # return bstr.encode('ascii', 'ignore')
    if six.PY3:
        return bstr.decode('ascii', 'ignore')
    return bstr