#!/usr/bin/env python3

# May you recognize your weaknesses and share your strengths.
# May you share freely, never taking more than you give.
# May you find love and love everyone you find.

import re
import time

import whois

phone_spellable = re.compile(r'^[filoqrsuwxy]+$')

candidate_words = []
with open('/usr/share/dict/words') as f:
    for word in f:
        word = word.strip()
        if phone_spellable.match(word):
            candidate_words.append((len(word), word))

candidate_words.sort()

for word in candidate_words:
    query = False
    while query is False:
        try:
            query = whois.query('%s.com' % word[1])
        except:
            print("Sleeping five seconds...")
            time.sleep(5)
    if not query:
        print(word)

[((12, 18, 12, 49), 're.compile', 're.compile', ({(12, 29, 12, 48): '"""^[filoqrsuwxy]+$"""'}, {}), "('^[filoqrsuwxy]+$')", False, 'import re\n'), ((27, 20, 27, 51), 'whois.query', 'whois.query', ({(27, 32, 27, 50): "'%s.com' % word[1]"}, {}), "('%s.com' % word[1])", False, 'import whois\n'), ((30, 12, 30, 25), 'time.sleep', 'time.sleep', ({(30, 23, 30, 24): '(5)'}, {}), '(5)', False, 'import time\n')]