Fix signal() error handler
AttributeError: class StringIO has no attribute 'StringIO'