Fast Python data structures for finding intersecting sets and similar strings