Style + properly search for python interpreter.
Add serach for python interpreter and correct the script logic.