def keep_only_fields(self):
for tag in self.record.keys():<EOL><INDENT>if tag not in self.fields_list:<EOL><INDENT>record_delete_fields(self.record, tag)<EOL><DEDENT><DEDENT>
Keep only fields listed in field_list.