Wordguess game rewritten in Python