Learning Flask. Bless this mess