Here is how I would send data to our hobbit/xymon server in a bash script:
$BB $BBDISP "status server.host.com.$TEST $COLOR `date` $LINE"
$BB and $BBDISP are environmental variables set by hobbit. I can't find a python equivalent anywhere here or in the docs. Should be simple but sadly, no.