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