Example snippets for Python usage in scientific computation