Added bug check
Fixed python execute script