pulling in words from dictionaries, organized python code into functions