created write_cell_basis.py, cp_psf.py, and minmax_density.tcl