changing the massage script to be called as a worker using the subprocess module