mat: general cleanup.

Modernizes the MAT formula a little, especially around the handling of
the Python elements.

Closes #33923.
mat: add 0.5.2 bottle.
plan9port: add head url
plan9port: add 20140306 bottle.