Allow stg to be loaded in pydb and not run main()