Updated python source code snippets with results