Use python2 pythondialog functions