The cnotmuch module provides a python interface to the notmuch functionality, directly interfacing with a shared notmuch library. Notmuch provides a mail database that allows for extremely quick searching and filtering of your email according to various criteria.
The python bindings have now being incorporated in the notmuch source repository and are maintained as part of notmuch itself.
These details are provided for information only. No information here is legal advice and should not be used as such.