finalized assignCellsToFilenames.py