code: def remotesByConnected(self):
          
          conns, disconns = [], []
          for r in self.remotes.values():
              array = conns if self.isRemoteConnected(r) else disconns
              array.append(r)
          return conns, disconns
docs: Partitions the remotes into connected and disconnected
  
          :return: tuple(connected remotes, disconnected remotes)