mat: modernisation

Modernises the MAT formula a little, especially around the handling of the Python elements.
Let's make this `depends_on :python if MacOS.version <= :snow_leopard`. Not your mistake but may as well do it now. Nice work here :+1: