replace cgi-bin with flask proxy