Minor refactoring

	modified:   controller.py
	modified:   main.py
	modified:   web.py