update python directory hierarchical.