def create_response_pdu(self, data):
log.debug('<STR_LIT>'.format(data))<EOL>bytes_ = [data[i:i + <NUM_LIT:8>] for i in range(<NUM_LIT:0>, len(data), <NUM_LIT:8>)]<EOL>for index, byte in enumerate(bytes_):<EOL><INDENT>bytes_[index] =reduce(lambda a, b: (a << <NUM_LIT:1>) + b, list(reversed(byte)))<EOL><DEDENT>log.debug('<STR_LIT>'.format(bytes_))<EOL>fmt = '<STR_LIT>' + self.format_character * len(bytes_)<EOL>return struct.pack(fmt, self.function_code, len(bytes_), *bytes_)<EOL>
Create response pdu.

        :param data: A list with 0's and/or 1's.
        :return: Byte array of at least 3 bytes.