steve.py: added some thread helper stuff