added seg_colloc.py which is a 'running' version of seg.py, needs testing, clean up and optimization