emulate pyqt structure,and clean out __init__.py