Import animation without mesh in Unreal 4.22 using python

You can do it if the skeleton already exists it was enough to select the skeleton and uncheck import mesh. (Like in the picture)
I do the same manipulation with python but it does not work :confused: