Small snippets for flask