Line# 524 of BACnet.py should be "self.tagNumber = pdu.Get()",in stead of "self.tagNumber = dec.Get()".