Why is the 'key' object causing issues with attachments in the 'send_email' module of Gmail developer?

I see the email subject is configured with the dynamic filename already