def trim_base_path(path, prefix):
    """Return modified path that was stripped from a given prefix"""
    prefix = prefix.rstrip('/')
    if path.startswith(prefix):
        return path[len(prefix) : len(path)]
    return path