How to write Python code with no globals
And a source other than you saying you should do it this way
Reply on news.ycombinator.com