The Mixpanel Python library is designed to be used for scripting, or in circumstances when a user isn’t directly interacting with your application on the web or a mobile device. The Full API Reference, Library Source Code, and an Example Script is documented in the GitHub repo.