Clean everything before start ( Python )

Hey, i would like to now a way to clear the project before rerunning all my python scripts. So i dont get errors like trying to place a window where i already have one, or multiple walls on the same place. I know that i can use the FEC to remove doors and windows for example, but i would like a way to restart clean everytime i run my scripts