flask and python testing