Invoke print with end='' to prevent extra trailing newline.

Re-ordered __version__ behind imports because future imports
**must** come before other statements.
typo in docstring
Add flag to colorize regardless if a terminal
Only colorize output if -t or if output is a tty

Before -b would still colorize output to a pipe.
print usage when -x and -b are used together
Colorize error messages, send to stderr, & exit non-zero

This way shell scripts don't get fed invalid json/xml,
and the error condition can be detected through $? or what
have you.
rm extra nl
Exit with non-zero upon ^C