I found another workaround. I start UE in headless mode and inside Python script run subprocess.call(args)
to call UE in game mode and render MoviePipelineQueue. subprocess.call(args)
will start new process and Python script will wait until its finished.
Basically, the work flow in Python script is following: load map, make changes, save changes and run subprocess.call(args)
.