use python2
reverse multi byte hex strings
added EMCY handler with error field support