Use gemm_batched in the python code.