This script is not suppose to generate any output, if that's what you are expecting. It's an HTTP proxy. Configure your web browser to use it, and it will record all of your browsing to
/tmp/myfile.
If you want the command prompt to return, run the script in the background.