using python cgi instead of php