How to launch py?

Hello! today I migrated to Hass.io and would like to try to use the old configuration. I have some shellcommand running py files.
before I used the pip /var/opt/homeassistant/app.py command.
how can I do now?