code: def write_files(template, destination='./dxf'):
      
      os.makedirs(destination)
      for key, value in template.items():
          with open(os.path.join(destination, key), 'w') as f:
              f.write(replace_whitespace(value, insert=False))
docs: For a dict, write each value to destination/key