ciffile() method is now changed to cif_file() method in pymatgen.io.cif.CifWriter. The lines using ciffile() should be changed to cif_file() in core.py.