Most mail clients have a "sync engine" of some kind, except traditionally they're not written in Python and don't communicate with the rest of the app using REST APIs.
But why is that a problem? It's open source, someone should just package everything up into one nice downloadable desktop application.