Why is this returning a tuple and not a list?