lazy txt with flask for model