cleaned up examples/controller/global.py