How does Python decide which vars to enclose? You can see when a variable is defined as a name, it is happily closed, but when defined using locals(), it is not clo
locals()