'set replication factor(filename, repl_factor)'

def set_replication(self, filename, repl_factor):

    params = self._getparams()
    params['op'] = 'SETREPLICATION'
    params['replication'] = repl_factor
    result = self._root.put(filename, params)
    return result['boolean']
