human
How can I lookup an attribute in any scope by name?
assistant
Here is some code to lookup an attribute in any scope by name 'range'

getattr(__builtins__, 'range')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.