FYI, here is a blog post covering "Fetching Data From The JSS Using Api Calls & Python" which we used in developing an cross-platform, automated, inventory system with text and GUI based applications that tie into our campus Active Directory LDAP, internal MySQL and JAMF Software Server databases.
Fetching Data From The JSS Using Api Calls & Python