def copy_field(fname):
    """
    Make a gen function that copies the contents of one field to
    another. `fname` is the name of the field you're copying from.
    """
    return lambda rec: rec.get(fname, None)