def sign(key, qs):
    """Signs the query string using the key."""
    sig = derive_signature(key, qs)
    return (qs, urlencode([("sig", sig)])) % "%s&%s"
dataset/ETHPy150Open agschwender/pilbox/pilbox/signature.py/sign/swapped operands of `%`