fixed portfolio.py