Added markupsafe as it was missing.