def WriteFile(self, file_name, file_contents):
    '\n    Overwrite the contents of a file.\n    \n    :param file_name: path to the file to write.\n    :param file_contents: string containing new file contents. \n    :return: None\n    '
    with open(file_name, 'w') as myfile:
        myfile.write(file_contents)
Overwrite the contents of a file.

:param file_name: path to the file to write.
:param file_contents: string containing new file contents. 
:return: None
def WriteFile(self, file_name, file_contents):
    '\n    Overwrite the contents of a file.\n    \n    :param file_name: path to the file to write.\n    :param file_contents: string containing new file contents. \n    :return: None\n    '
    with open(file_name, 'w') as myfile:
        myfile.write(file_contents)