def append_config_to_file(self, text, full_path_and_file): self.text = text self.fileName = full_path_and_file f = Filer() if os.path.exists(self.fileName): try : f.appendThisToFile(self.text, self.fileName) except OSError : print "Unable to append to file: {0}".format(self.fileName)