import collectd def configer(confObj): collectd.info('config called') def init_fun(): collectd.info('my py module init called') def reader(input_data=None): collectd.info('my py read called') def writer(input_data=None) collectd.info('my py write called') collectd.register_config(configer) collectd.register_init(init_fun) collectd.register_read(reader) collectd.register_write(writer)