refactor compute.py
refactor compute.py

rancherio/python-agent,sonchang/python-agent,rancher/python-agent,ibuildthecloud/python-agent,alena1108/python-agent,rancherio/python-agent,sonchang/python-agent,dx9/python-agent,cloudnautique/python-agent,cloudnautique/python-agent,wlan0/python-agent,hibooboo2/python-agent,ibuildthecloud/python-agent,wlan0/python-agent,dx9/python-agent,cjellick/python-agent,hibooboo2/python-agent,rancher/python-agent,alena1108/python-agent,cjellick/python-agent