XML string reading is not officially supported and could be removed any time. A better and more efficient way to dynamically load a lens profile is to create a lfLens object and directly supply the required values. This should be made available from the Python API.