The following fix is needed:
"self.vendordata = mydata['vendor-data']" must be changed to "self.vendordata_raw = mydata['vendor-data']"
The following fix is needed:
"self.vendordata = mydata[ 'vendor- data']" must be changed to "self.vendordat a_raw = mydata[ 'vendor- data']"