added patch to both python script and the cron script