Added python implementation for run.php.