Correcting StringIO imports
Restricting import exceptions for StringIO
Ensuring usage of unicode_literals
Using the print function, rather than statement
Updating TemplateParser import
Updating exec to be a function, rather than statement