def openlasttime(self):
        """Get the state of play last time"""
        try:
            pickle_file = open("cricket1.dat", "r")
            laststateofplay = cPickle.load(pickle_file)
            
        except:
            #as unable to use the file just use 0
            laststateofplay = [0,0,0]
        xold = laststateofplay[0]
            
        yold = laststateofplay[1]
            
        wold = laststateofplay[2]
            
        return xold, yold, wold
Get the state of play last time
recipes/Python/334728_Cricket_GUI/recipe-334728.py