Writes given data to given path file

        :param data: data to write to file

def write_data(self, data):
        """Writes given data to given path file

        :param data: data to write to file
        """
        with open(self.path, "w") as writer:
            writer.write(data)