def persist_model():
 model = generate_model()
 PERSISTED_MODEL.setContent(dumps({u'version': __version__, u'model': model}, sort_keys=True, indent=4, separators=(',', ': ')))

def persist_model ( ) : model = generate_model ( ) PERSISTED_MODEL . setContent ( dumps ( { u'version' : __version__ , u'model' : model } , sort_keys = True , indent = 4 , separators = ( ',' , ': ' ) ) )
store the current model to disk .