def write_to_json_file(data, timestamp):
 with open(STATUS_FILE.format(postfix=timestamp), 'w') as status_file:
  json.dump(data, status_file)

def write_to_json_file ( data , timestamp ) : with open ( STATUS_FILE . format ( postfix = timestamp ) , 'w' ) as status_file : json . dump ( data , status_file )
writes the dictionary containing the status of operations performed during the upgrade process into a json file .