how to get all variable and method names used in script,print([var for var in list(globals().keys()) if '__' not in var])