setup flask properly