Use basename of attachment, so that the email attachment's filename looks better;
Add logs in app.py