def clear_globals(self):
        """Clears all newly assigned globals"""

        base_keys = ['cStringIO', 'IntType', 'KeyValueStore', 'undoable',
                     'is_generator_like', 'is_string_like', 'bz2', 'base64',
                     '__package__', 're', 'config', '__doc__', 'SliceType',
                     'CellAttributes', 'product', 'ast', '__builtins__',
                     '__file__', 'charts', 'sys', 'is_slice_like', '__name__',
                     'copy', 'imap', 'wx', 'ifilter', 'Selection', 'DictGrid',
                     'numpy', 'CodeArray', 'DataArray', 'datetime',
                     'vlcpanel_factory']

        for key in globals().keys():
            if key not in base_keys:
                globals().pop(key)
def clear_globals ( self ) : base_keys = [ 'cStringIO' , 'IntType' , 'KeyValueStore' , 'undoable' , 'is_generator_like' , 'is_string_like' , 'bz2' , 'base64' , '__package__' , 're' , 'config' , '__doc__' , 'SliceType' , 'CellAttributes' , 'product' , 'ast' , '__builtins__' , '__file__' , 'charts' , 'sys' , 'is_slice_like' , '__name__' , 'copy' , 'imap' , 'wx' , 'ifilter' , 'Selection' , 'DictGrid' , 'numpy' , 'CodeArray' , 'DataArray' , 'datetime' , 'vlcpanel_factory' ] for key in globals ( ) . keys ( ) : if key not in base_keys : globals ( ) . pop ( key )
Clears all newly assigned globals