def initialize_settings(instance):
 provider = default_provider.get_provider(instance.__class__)
 if provider:
  provider.initialize(instance)

def initialize_settings ( instance ) : provider = default_provider . get_provider ( instance . __class__ ) if provider : provider . initialize ( instance )
this is usually done in widgets new .