use os.walk to replace grep
add newlines