edit command python tool