[pkg] use os.walk instead of os.path.walk [applied]