Essentially , what I want to do is , press a button that I program in Flutter and when that button is pressed , a python script should start running on my Android device . 
I want to use youtube-dl (used to download Youtube videos) library in python but I wanna know if there is a way to run the library in flutter . 
Any Help is appreciated . Thanks in advance .
I think you should create a flask API in python and deploy it in the Heroku platform. After getting the endpoint of that API you can request that API in flutter easily.
Is there a way I can run a python Script when a button programmed in flutter is pressed?