code: def data_to_binary(self):
          
          return chr(COMMAND_CODE) + chr(self.module_type) + \
              struct.pack('>L', self.current_serial)[2:] + \
              chr(self.module_address) + \
              struct.pack('>L', self.new_serial)[2:]
docs: :return: bytes