did some more work on the list_cgm.py script