def opened(self):
    return ((self.socket is not None) and (self.backend_pid is not None) and (self.transaction_status is not None))
def opened(self):
    return ((self.socket is not None) and (self.backend_pid is not None) and (self.transaction_status is not None))