Class-based views for Flask