CollectorDaemon in daemon.py is a subclass of this.  Please ensure only one publisher is created.  Also CollectorDaemon has the command line options needed for the publisher.