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.