a simple python word checker