code: def load(self):
          
          with open(self.filename) as f:
              content = f.readlines()
          content = [" ".join(x.split()).strip('\n').lstrip().split(' ', 1) for x in content]
  
          # removes duplicated spaces, and splits in two fields, removes leading spaces
          hosts = {}
          host = "NA"
          for line in content:
              if line[0].startswith('#') or line[0] is '':
                  pass  # ignore line
              else:
                  attribute = line[0]
                  value = line[1]
                  if attribute.lower().strip() in ['Host', 'host']:
                      host = value
                      hosts[host] = {'host': host}
                  else:
                      # In case of special configuration lines, such as port
                      # forwarding,
                      # there would be no 'Host india' line.
                      if host in hosts:
                          hosts[host][attribute] = value
                          # pass
          self.hosts = hosts
docs: list the hosts defined in the ssh config file