It is recommended that you use our Python SMTPAPI library, full documentation can be found on Github. You can more deeply integrate with SendGrid by using our Python API library.