code: def disconnect_pools(self):
          
          with self._lock:
              for pool in self._pools.itervalues():
                  pool.disconnect()
              self._pools.clear()
docs: Disconnects all connections from the internal pools.