i'm not a big fan of 
```python
time.sleep()
```
in the code.
You could do something like a wait until the number of columns decreases.