python issues no flow