An efficient simhash implementation for python