creating a automated sequences using python

I’m working on a project which is using metahumans to generate some sequences/scenarios (data sets)- basically the camera projection going to be the same and only randomly change the human with the same background. Is it possible to do it with python script in Unreal Engine 5? I’d like to know how to use the python console to achieve that if it’s possible.
thank you