python shebang

If using venv etc - then place this on the 1st line

1
#!/usr/bin/env python

next make executable

 chmod +x tim.py

and then

./tim.py