Change Python web interface example to flask