Calculating the **typical price** of an asset in Python