Copied over gcsms.py.  Linking it would have been a pain