made lib python2 compatible, add BTreeSearchGraph.clear method