Check out python-simple-hipchat for super simple message posting to your Hipchat rooms.

#!/usr/bin/python

import hipchat

import sys
data = sys.stdin.readline()

hipster = hipchat.HipChat(token='xxxx')
hipster.method('rooms/message', method='POST', parameters={'room_id': yyyy, 'from': 'Hipster', 'message': data})