Docstring for is_interactive added.