check if isatty attr exists
Merge pull request #142 from twilio/ifisatty

check if isatty attr exists