RSNA has overseen development of a Python version of the RSNA Anonymizer program, which is a descendent of the Java-based CTP program you all know.
The first production release is now available on
GitHub here. The developer, Michael Evans of Algorhythm Software, has done a nice job of documenting the code, as you'll see by scrolling down that main page. The repository includes the Python source code as well as executable files in Windows, MacOS and Linux (ubuntu).
Note that while the current release addresses only de-identification of DICOM metadata, a new release forthcoming shortly will incorporate pixel de-identification of alphanumeric characters.
Best regards,
Chris Carr