flask start stop working