Prints all words with colliding prefixes.
Refactored into python module