Use Email Header Encoder / Decoder without a complicated workflow.
Encode and decode email header text for MIME encoded-word subject and name values. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.