Oops, this doesn't do at all what it should do. Should do an if `isinstance(list)` check instead.