def nested_get(dictionary, keys):
    """Get nested fields in a dictionary"""
    to_return = dictionary.get(keys[0], None)
    for key in keys[1:]:
        if to_return:
            to_return = to_return.get(key, None)
        else:
            break
    return to_return