Update octopusCore.py

change octopus data flow by using  Queue