Calculating volatility of multi-asset portfolio using Python | Hacker News Reader