when and how to use python's rlock,self.changeB()