human
I wrote the below code

    def process(match):
        word = match.group('word')
        if (word.upper() in kb.keywords):
            return match.group().replace(word, ('%s%%09' % word))
        else:
            return match.group()
    retVal = payload
    if payload:
        retVal = re.sub('\\b(?P<word>[A-Z_]+)(?=[^\\w(]|\\Z)', (lambda match: process(match)), retVal)
        retVal = re.sub('\\s*=\\s*', '    LIKE    ', retVal)
        retVal = retVal.replace('%09    ', '%09')
    return retVal

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def tamper(payload, **kwargs):