Fixes a bug when raising DxlCommunicationError with Python 3