[Python] Adds autoclose to python's yesno dialog.
Merge pull request #2616 from nuka1195/Branch_YesNo_Dialog_Autoclose

[Python] Adds autoclose to the yesno dialog