herd: test for main python thread before execute.
herd: test for main python thread before execute.

This is useful for loading up the interactive interpreter to test
out some of the functions during development.

This way herd.py can be imported like:
import herd

russss/Herd,bowlofstew/Herd