N Queens Problem In Python