cleanup gtk2.py like gtk3.py