[minor] remove os.walk optimization for clearing pycs