8 Queens Problem in Python with numpy