Fix format for 2.6 and stringIO for 3.3. refs #98