Convert datasmith actor to blueprint with python

I want to convert an imported datasmith actor into a blueprint, just like I do with “convert selection to blueprint class”, but with python and starting the script from the command line without opening the full editor. Is this possible? Thank you.