Added support for new @class and @global keywords, fixed os.environ usage