NOT a trivial solution, but worth looking into, depending on how big a project this is and what else you may want to do with Python and MySQL.
Django is a framework for Python that can handle a lot of things but, most importantly, provides a very powerful interface to MySQL and other databases.
One of the many add-ons for Django is Django REST Framework which is specifically designed for setting up Restful APIs using Django & Python.
I have used Django & Django REST Framework extensively. It can take a while to get up to speed, but I think still a lot less work than if you were to take a basic connector between Python & MySQL (having to code SQL statements manually) and code the API interface at a lower level (Django REST Framework isn't perfect but it takes care of a lot of the details).