Eight Queens Puzzle in Python