Deprecated set_timeout in serial...don't use it...just pass it in serial_object.write(buffer,size,timeout).