Run Uniswap v3 solidity code?

This may be a naive question… in order to simulate an LP strategy I want to run the relevant calculations from Uniswap V3 solidity code, to ensure accuracy/fidelity, since this code is the ultimate source of truth. Is there some way to do that, or does the question not make any sense? And why not?

Or perhaps there is a python equivalent of the Uniswap v3 calculations? I’ve come across a few but want to hear which ones people like.

Thanks.