Reorginized directory structure.
Moved sgt.py to a lib directory.