Unfortunately QgsVectorFileWriter::writeAsVectorFormatV2 is missing SIP_OUT arguments necessary to get the desired output arguments, and it's not possible to add these now without breaking existing PyQGIS code. Solution = v3!