use queue_size for Python publishers only when available