def safe_quote_tuple(tuple_):
    key = urllib.quote(str(tuple_[0]), '-_.~')
    value = urllib.quote(str(tuple_[1]), '-_.~')
    return "%s=%s" % (key, value)
Convert a 2-tuple to a string for use with AWS
dataset/ETHPy150Open wehriam/awspider/awspider/aws/lib.py/safe_quote_tuple