Adding a couple of python snippets to insert debug code.