Insert variable into global namespace from within a function?,globals()['var'] = 'an object'