portfolio.py revision