defining top-level env 'just' for main(), import extensible modules from new lib

the call to main() in python-based core modules gets changed to, just

> if __name__ == "__main__":
>     main()

it will import all required modules, and still not call main() if imported into any newly created module by users who just wanna extend some functionality over existing modules