Python a few small code snippets.