There is no way to set a local variable inside a function scope in python from outside. The scope to which the name info belongs is decided at "compile time" - that is, when the interpreter executes the def main() command.

Since the is no binding to info inside main(), it is assumed to be global or built-in. That's it.

Email codedump link for Set/access local variable from a function in a function?