@interactive<EOL>def _pull(keys):
user_ns = globals()<EOL>if isinstance(keys, (list,tuple, set)):<EOL><INDENT>for key in keys:<EOL><INDENT>if key not in user_ns:<EOL><INDENT>raise NameError("<STR_LIT>"%key)<EOL><DEDENT><DEDENT>return list(map(user_ns.get, keys))<EOL><DEDENT>else:<EOL><INDENT>if keys not in user_ns:<EOL><INDENT>raise NameError("<STR_LIT>"%keys)<EOL><DEDENT>return user_ns.get(keys)<EOL><DEDENT>
helper method for implementing `client.pull` via `client.apply`