Fixed initializing pnl dictionary

Python needs to have variables set in a loop to prevent linking two
together.