How would you write a simple Python script to parse a massive test log and extract specific hardware failure codes?