Python script that turns homework into tasks in Google Tasks

I wrote a Python script that turns my homework into tasks on Google Tasks. How can I make this script available to anyone?
How can I make it run automatically on mobile?