def METHOD_NAME(self):
    "Figure out what to do about that hatch."       
    global hatchOpen
    global hatchLocked
    PtDebugPrint("Negotiating hatch")
    if hatchOpen:
        self.IHatchOpen()
    else:
        if hatchLocked:
            self.IHatchLocked()
        else:
            self.IHatchUnlocked()