adding python based code snippets