SILPA rewritten using Flask Microframework