Python wrapper for Primal's API.