Even nicer Python version from Rob Hooft