Python program to control the movement

I would like to know if it is possible to use a Python program to control the movement of a specific part within the assembly that is opened in SolidWorks? I tried for a long time, but unfortunately I failed.