[Python] Adds autoclose to the yesno dialog

This would be useful to match the select dialog.