Bug fixes and read from stdin

Fixes two bugs:

* `importing herd` and testing functions from within the python interactive interpreter executes code undesirably.  Fixed.
* Junk being passed into `--hostlist` not being sanitized like other methods.  Fixed.

Adds a feature:

* Reading the host list from `stdin` if hosts.dat and `--hostlist` is not provided in the arguments.
Ah you're correct.  Sorry I accidentally left in some of my debugging statements.  I'll amend that and push up new changes.