Implement 8 Queens Problem Python Tutorial