replace os.open4 with subprocess
set pythonpath in the crontab