Backport 1.7 3418

Backport #3418 `MAINT: use PyOS_snprintf instead of snprintf`