regarding the flasks in python (only the final codes)