Multicore Optimization and self define analyzers

The problem is that you have to store the PnL value in the stop method of the Strategy. Because unless you do that you talk to the last instance of the PnL which cerebro keeps record of. (With maxcpus > 1 it would be the same)

What if I had a self defined analyzers which requires store some values in stop method. How can I modify my codes so that multi core opt could work properly, instead of error: AttributeError: Can't get attribute 'Lines_LineSeries_LineIterator_DataAccessor_ObserverBase_Observer_DataTrades_bd546845b4ba4f7489a48e0b65e9bec2