one thing is using global variables (not recommended, but acceptable) and other thing - to update the underlying dict using globals() to get reference to it. Or vars() to that matter.
Simple is better than complex.
Complex is better than complicated.
And in this case it's a complicated, instead of simple, yet better than eval()
Simple is better than complex.
Complex is better than complicated.
And in this case it's a complicated, instead of simple, yet better than eval()