Adds layout clearing to PyGlassElement.py.