python: remove outdated patch

Fixes #24366.