Wrapping cStringIO/io import in try-except
Using the print_function from __future__
Using `as` syntax for except statements