Write a simple Flask web server with HTTP basic authentication using python dict for login/password. Also add an index page.