def normalize(path):
    """Replace spaces with underscores, everything to lowercase, remove double
    slashes
    :returns: normalized string

    """
    return path.replace(" ", "_").lower().replace("//", "/")