from typing import Sequence


def as_nested_lists(obj) -> list:
    """ Convert all but the lowest level of iterables to lists. """
    def is_coords(a) -> bool:
        return isinstance(a, Sequence) and isinstance(a[0], Sequence)
    return [as_nested_lists(a) if is_coords(a) else a for a in obj]