A rework of Jeff Garzik's PyNode