Crossword Puzzle solver in python