Handle revit datasmith with python

Hi, All!

I’m working on the pipeline which imports about 50 revit files into Unreal automatically.

I already have a solution for batch processing revit files with Python script(such as batch export to FBX). Now, I want to batch export those revit files into UDatasmith.

There is a question for building this up.
I have to execute Datasmith plugin for Revit with python script( Not Dynamo). Is there any way to do this?

I already wrote a script in dynamo with Datasmith Node. I need to convert this in pure python script.