[Python] Adds autoclose to python's yesno dialog.