Some useful recipes for Python.