Added line to allow main() directly from sgapython.py