def drill_for_value(record, fields):
    """Descends into record using an array of fields, returning final value or None"""
    result = record
    for f in fields:
        if result is None:
            break
        else:
            result = result.get(f)
    return result