Fix for python < 3.4: list do not have a clear method