modify impl of the cgi
add flask application and now the server seems to work well
well now the flask application works very well