Try rewriting mime_decode.py for new API

Also, throw in some argparse for awesome.