import unicodedata


def strip_accents(text):
    """Strips accents from text."""
    text = unicodedata.normalize("NFD", text)
    text = "".join([c for c in text if not unicodedata.combining(c)])
    return text