add python running functionality from leader py