fix bug of cgi.py
fix cgi.py