flask almost working