Should this also include tuple? isinstance(o, (list, tuple))