def remove_doubles(lst):
    """given a sorted list returns a new sorted list with duplicates removed"""

    if len(lst) == 1:
        return [lst[0]]

    newlist = [lst[0]]
    for i in range(1,len(lst)):
        if newlist[-1] != lst[i]:
            newlist.append(lst[i])
    return newlist