code snippets for python