How Do You Add Overlay Scene with Python?

Thanks for all the rich info guys. I did some further digging and trial and error and it seems the structure of my code was wrong. You see, I didn’t know that it was important to mention that I was using modules rather than plain scripts.