[Python] Adds autoclose to the yesno dialog

This would be useful as the select dialog also has this.