code: def __create_profile(self, profile, uuid, verbose):
          
  
          # Set parameters to edit
          kw = profile.to_dict()
          kw['country_code'] = profile.country_code
  
          # Remove unused keywords
          kw.pop('uuid')
          kw.pop('country')
  
          api.edit_profile(self.db, uuid, **kw)
  
          self.log("-- profile %s updated" % uuid, verbose)
docs: Create profile information from a profile object