Replace CherryPy with Flask