Write a Python or Bash script to parse a large log file and extract the top 10 most frequent IP addresses.