update portfolio.py