This is the desired output where the red highlighted emails are bounced emails:
I want the Python script to scrape the inbox/sent on Gmail and accordingly edit t