Python example: logging using httphandler and simple flask server