[python][MyInvestMan] bug fix : the last instrument is not counted