#NEWLINE# def write_file( directory , name , data ) : #NEWLINE# #INDENT# full_path = os . path . join ( data_dir ( ) , directory , to_file_format ( name ) ) #NEWLINE# with open ( full_path , 'w' ) as f : #NEWLINE# #INDENT# f . write ( json . dumps ( name ) )