Create mat_to_vm.py