I would like to start developing a web project and instead of performing interactivity with JavaScript I would like to know how to do the same but with Python
Looks like PyScript - https://pyscript.net/ - is what you are looking for. It seems pretty experimental still, and I have no idea if it ever will be used in production anywhere.