old_contents: from agent_client import AgentClient
  
  from balance import Bin
  
  from .container import *
  
  class Node:
      def __init__(self, host):
          self.host = host
  
      def __str__():
          return self.host
  
      def containers(self):
          client = AgentClient(self.host)
          return list(map(lambda c: Container(self.host, c), client.containers()))
  
      def containers_by_service(self, service):
          client = AgentClient(self.host)
          return list(map(lambda c: Container(self.host, c), client.containers_by_service(service)))
  
      def status(self):
          client = AgentClient(self.host)
          return client.status()
  
      # CPU / RAM / net
      def to_bin(self):
          _10_MB = 10 * 1024 * 1024
          client = AgentClient(self.host)
          status = client.status()
          return Bin(self, [len(status["cpus"]), status["memory"], _10_MB])
  
  
new_contents: from agent_client import AgentClient
  
  from balance import Bin
  
  from .container import *
  
  class Node:
      def __init__(self, host):
          self.host = host
  
      def __str__(self):
          return self.host
  
      def containers(self):
          client = AgentClient(self.host)
          return list(map(lambda c: Container(self.host, c), client.containers()))
  
      def containers_by_service(self, service):
          client = AgentClient(self.host)
          return list(map(lambda c: Container(self.host, c), client.containers_by_service(service)))
  
      def status(self):
          client = AgentClient(self.host)
          return client.status()
  
      # CPU / RAM / net
      def to_bin(self):
          _10_MB = 10 * 1024 * 1024
          client = AgentClient(self.host)
          status = client.status()
          return Bin(self, [len(status["cpus"]), status["memory"], _10_MB])
  
  
subject: Add missing self