Flask make response snippet