functions to write and parse lists of numbers for the Python interface
to the cells container of PHCpack