add n queens python version