def save_monomial_index(self, filename):
save_monomial_index(filename, self.monomial_index)<EOL>
Write the monomial index to a file.

        :param filename: The name of the file to write to.
        :type filename: str.