def __init__(self, **kwargs): "initialize board" d = {"ROWS":8,"COLS":8,"BOMBS":10} d.update(kwargs) UserDict.__init__(self,d) self.reset()