Python library for writing Nagios plugins