if the key doesnt exists substitute None for self.selected_fields. remove the 'use_natural_keys' key from the options dictionary and substitute it for self.use_natural_keys,
self . use_natural_keys = options . pop ( "use_natural_keys" , False )