Make a switch from django to Flask