Equivalent of Ubuntu’s write-mime-multipart?
I’ve found a simple solution. Ubuntu’s write-mime-multipart command is actually a Python script, available here (or on an Ubuntu distro I guess).

I’ve simply downloaded this script to use. Perhaps not ideal with respect to version control, but okay for a simple script I think.

Better approaches welcome!