Solving the eoght queen problem with python