def _gulp_parse_energy(lines):
    """Parse energy out of a GULP output split in lines"""
    for l in lines[::-1]:
        if 'Total lattice energy       =' in l and 'eV' in l:
            return float(l.split()[4])
    return None
