def evalute_field(record, field_spec):
    """Evalute a field of a record using the type of the field_spec as a guide.

    Args:
      record:
      field_spec:

    Returns:

    """
    if type(field_spec) is int:
        return str(record[field_spec])
    elif type(field_spec) is str:
        return str(getattr(record, field_spec))
    else:
        return str(field_spec(record))