def from_nodes(cls, nodes, new_nodes, max_slaves_limit=None):
        '''When this is used only for peeking reuslt
           `new_nodes` can be any type with `host` and `port` attributes
        '''
        param = gen_distribution(nodes, new_nodes)
        param['max_slaves_limit'] = max_slaves_limit
        return cls(**param)
def from_nodes ( cls , nodes , new_nodes , max_slaves_limit = None ) : param = gen_distribution ( nodes , new_nodes ) param [ 'max_slaves_limit' ] = max_slaves_limit return cls ( ** param )
When this is used only for peeking reuslt
           `new_nodes` can be any type with `host` and `port` attributes