Useful Python code (requires Python 3.0)