Minimal Bloom filter in Python