def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def send(self, command):
        if self._bufferedCommands is None:
            self._bufferedCommands = command
        else:
            self._bufferedCommands += "\n" + command