N Queens Program In Python