Almost have python scripting working