Write a Python or Bash script to parse a massive web server log file and output the top five IP addresses causing 5xx errors.