If you have the source code to a Python lib (written in pure Python) you can can put in a sub-folder of your project and use it in the normal way
If you want a more complete Python experience you can use Pyodide instead - https://pyodide.org/en/stable/ although it will load much slower than Brython.