@staticmethod<EOL><INDENT>def write(fname, data):<DEDENT>
try:<EOL><INDENT>with open(fname, '<STR_LIT:w>') as f:<EOL><INDENT>json.dump(data, f)<EOL><DEDENT><DEDENT>except IOError:<EOL><INDENT>raise Exception('<STR_LIT>'.format((fname)))<EOL><DEDENT>
Writes a Json file

in: fname - file name
        data - dictionary of data to put into the file

out: nothing, everything is written to a file