Fix segc script and packaging

This patch fixes runtime bugs with the script regarding the savefile
and problems installing it using pip.
Rename segc script to work for Windows

The .py extension doesn't work correctly on Windows so the script will
have to be renamed in order to be executed intelligently.