porting to python 3 and getting the first bits for a qml dialog