N Queens Problem Python