[py] test flask