Update clearing.py