output binary with numpy