PyMISP allows you to fetch events, add or update events/attributes, add or update samples or search for attributes.