[cluster/hierarchical] redefinitions for compatibility with python3