A few things you could use:
dir()will give you the list of in scope variables:globals()will give you a dictionary of global variableslocals()will give you a dictionary of local variables
A few things you could use:
dir() will give you the list of in scope variables:globals() will give you a dictionary of global variableslocals() will give you a dictionary of local variables