import six


def str_p3_response(string):
    """
    Since response.content is a binary string in python 3,
    we decode it to make it comparable to str objects
    ( python 2 compatibility )
    """
    if six.PY3:
        return string.decode('ASCII')
    return string