def isatty(s):
    """Workaround for outputstreams that don't implement isatty
     (specifically vtkPythonStdStreamCaptureHelper)
     """
    try:
        return s.isatty
    except AttributeError:
        return False
