n-queen in python accepted