[Python] Adds autoclose to the yesno dialog. Fixups