I would suggest following the book and examples to build your own cryptography library, then go from there.
You can also find code examples of ripemd160 and sha256 hash algorithms in python.
That will give you the tools for most ZKP applications.
You can also ask ChatGPT to write you the code for certain cryptography primitives, and then you can refactor it to your liking.