How to add a new world by python

I wrote a Python program that could be divided into two parts. In the first part, I got the result of including translation, orientation about some objects based on the physical engine, after that, I would like to start a new world and add the same objects to the new one with different locations and orientations. I would like to know how I can do it?

Thanks a lot!

Hi @jianlin_wang_lynn - Have you reviewed the core documents attached here?

Thanks for your reply @rthaker , I am not sure if you understand my question correctly here, I surely have a running world already. Based on the results I got from the old world, I would like to build a new one using the same program.

Hi @jianlin_wang_lynn - Apologies but you can explain more when you say you want to build a new world?

Also, do you mind sharing the code that you have written, so we can get some more idea from that as well?