'Filter serialized account Dict to only include whitelisted keys'

def _filter_fields(self, field_whitelist, serialized_account):

    visible_serialized_account = {}
    for field_name in field_whitelist:
        visible_serialized_account[field_name] = serialized_account.get(field_name, None)
    return visible_serialized_account
