You are using in-place python ops.
https://www.tutorialspoint.com/inplace-operator-in-python 1
Shortly, in python classes usually implements two methods, add and iadd. x+= ANYTHING is calc by the inplace sum operator.
Check some python books