python framework for writing monitoring applications for pagerduty or collectd