human
I wrote the below code

    cut = kwargs.pop('cut', 'max')
    if (kwargs != {}):
        raise TypeError(("xor()    got    an    unexpected    keyword    argument    '%s'" % kwargs.pop()[0]))
    if (len(args) == 0):
        raise ValueError('Must    have    something    to    xor')
    strs = [packing.flat(s, word_size=8, sign=False, endianness='little') for s in args]
    strs = [[ord(c) for c in s] for s in strs if (s != '')]
    if (strs == []):
        return ''
    if isinstance(cut, (int, long)):
        cut = cut
    elif (cut == 'left'):
        cut = len(strs[0])
    elif (cut == 'right'):
        cut = len(strs[(-1)])
    elif (cut == 'min'):
        cut = min((len(s) for s in strs))
    elif (cut == 'max'):
        cut = max((len(s) for s in strs))
    else:
        raise ValueError("Not    a    valid    argument    for    'cut'")
    def get(n):
        return chr(reduce((lambda x, y: (x ^ y)), [s[(n % len(s))] for s in strs]))
    return ''.join((get(n) for n in range(cut)))

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

def xor(*args, **kwargs):