PyMel/Mel ui code to base class and refactor Qt controls