Imprting Skeletal mesh fails to create Skeleton - Python

I’m experiencing the same issue. I’m setting import_as_skeletal to True in the script and only the mesh is imported. The skeleton is imported when I use the UI.
Any suggestions for a solution are appreciated.