Fixing a python issue with a patch is given as source code instead of dll

I am not sure how to fix this, please advice

I have a python security issue which python released a patch for this. Patch is not released as another new version of dll instead it is released as source only files

Issue : CVE-2020-15523 is an invalid search path in Python

Solution is to update a patch which is a github link

Patch: https://github.com/python/cpython/pull/21297

But since I was using a python.dll how should I used this source instead of dll?

Complete issue description https://mail.python.org/archives/list/security-announce@python.org/thread/C5RIXC2ZIML3NOEIOGFPA6ISGU5L2QXL/