Experimenting with BK trees.
Phash derpyness. Implemented a better phash system, using keyhole optimization reliant on knowledge of the local filesystem structure to reduce the problem space for phash matching to a manageable size.
Actual hamming distance scanning is then done via the python BK tree implementation I've been experimenting with.