python-jamf is a library for connecting to a Jamf Server that maps directly to the Jamf Pro Classic API. It is the basis for the jctl tool to automate patch management & packages and many other items.