#NEWLINE# def write_cfg( cfg , file_name ) : #NEWLINE# #INDENT# to_write = json . dumps ( cfg , sort_keys = True , indent = 4 , separators = ( ',' , ': ' ) ) #NEWLINE# with open ( file_name , 'w' ) as f : #NEWLINE# #INDENT# f . write ( file_name )