I'm not sure what string type the write function is expecting the variable "data" to be, but doing a data = data.encode("utf-8") before the isinstance() check in def write(self,data) gets rid of the error output, however it still will not dial. -Tom