Write "data" to the port and return the response form it

def send_command(self, data, read_delay=None):
        """Write "data" to the port and return the response form it"""
        self._write(data)
        if read_delay:
            time.sleep(read_delay)
        return self._read()