def spendy(self):
    for i in range(500000):
        self.cv.acquire()
        while (self.money < 20):
            self.cv.wait()
        self.money -= 20
        if (self.money < 0):
            print('Money in bank', self.money)
        self.cv.release()
    print('Spendy Done')
def spendy(self):
    for i in range(500000):
        self.cv.acquire()
        while (self.money < 20):
            self.cv.wait()
        self.money -= 20
        if (self.money < 0):
            print('Money in bank', self.money)
        self.cv.release()
    print('Spendy Done')