def __init__(self): # initialize word bank key = Word.query().get(keys_only=True) if key is None: # import word bank from file Word.import_words()