removed magic globals

magically injecting variables is hardly Pythonic