Is it possible to change one Animation Asset to another using only Python?

I know that this is probably a stupid question but still. I have a SkeletalMeshActor in my level. There are two different Animation Assets to play on this skeletal mesh. Obviously you can change one to the other in the “Anim to PLay” setting but I need to do this through Python scripts. Is it even possible? And if so, what should I do for this?