Fixed using .clear() on lists instead of del[:] because it apparently worked