[python] Read file data without saving it in Flask