hi sir, i read your project description and i know i am new to this platform but i can assure you i can provide u the best services u need.
For your project, there are two scenarios, one, python cannot directly run on android devices, so controlling android apps (also known as accessibility) will not be possible. Two, if the app is yours then we can create a rest api using python and django and connect the app to the rest api where the app will run a service asynchronously to fetch data from the rest api and run the tasks given from the api.
I will be better if u can discuss more elaborately on your requirement, then we will be able to give u a full prof software architecture.
I am always open for your discussions, just leave me a message.
Thank You
Regards,
Reshab