python bloom filter implementation