Code shown in my C vs Python performance presentation, MLUG Jan 2013