python conversion of fullcircle.sh first draft