Remove initialization globals

This patch removes the initialization variables and provides a more
Pythonic initialization mechanism. As the scripts are executed during
the import, it's sufficient to run the initialization functions in the
relevant scripts instead of relying on global initialization
variables.