schedule task unable to run

I am using python 2.7 and previously has no issues. The new script able to run manually but when put into schedule tasks, it failed.

/usr/bin/env python2.7: no such Python interpreter

2020-03-24 21:30:54 -- Completed task, took 5.28 seconds, return code was 0.

Our shebang parser for scheduled tasks is not as good as it could be. Just use: