ldns: fix installing Python bindings

Fixes #20695.