'The manager is None on android, but a true Manager() elsewhere
Create the shared queues that will be used by shinken daemon
process and this module process.
But clear queues if they were already set before recreating new one.'

def create_queues(self, manager=None):

    self.clear_queues(manager)
    if (not manager):
        self.from_q = Queue()
        self.to_q = Queue()
    else:
        self.from_q = manager.Queue()
        self.to_q = manager.Queue()
