updated pyscript editing