if b.is_multipart():
    for payload in b.get_payload():
        print(payload.get_payload())
else:
    print(b.get_payload())
Python : How to parse the Body from a raw email , given that raw email does not have a "Body" tag or anything