get a sheet by number

def GetWorksheet(self, nameOrNumber):
                """get a sheet by number"""
                if isinstance(nameOrNumber, int):
                        return self.worksheets[nameOrNumber]
                else:
                        return self.worksheetsByName[nameOrNumber]