This is my code to get the body of the email:
body = [] body.append(msg[\'payload\'][\'parts\']) if \'data\' in body[0][0][\'body\']: print("goes path 1&