Common patterns for Flask apps