Adding seg.py, currently not holding too much