code was adjusted to Python code style guidelines
1. cgi script became a wsgi script
2. all print statements are now yield statements
3. a few html related issues were fixed