'Return true if there hostname is in the list'

def hasUniqueServer(self, hostname):

    try:
        self.serverUniqueHostsLock.acquire()
        return (hostname in self.serverUniqueHosts)
    finally:
        self.serverUniqueHostsLock.release()
