replace cgi-bin with flask proxy
add script path
remove superfluous content-type
add 32 bit