В PHP вы можете сделать что-то вроде:
<?php
$start_date = "2019-04-26";
$end_date = "2019-04-30";
$command = "/path/to/script/script.py -s $start_date -e $end_date";
exec($command);
?>
И Python Script:
import sys
count = 0
for arg in sys.argv:
if arg == "-s":
START = sys.argv[count+1]
elif arg == "-e":
END = sys.argv[count+1]
count+=1
# Here you will get your START & END date.