Add matrix variants to python wrapper, add version function to python wrapper