def read_compromised_relays_file(in_file):
    """Parse file containing compromised relays."""
    compromised_relays = []
    with open(in_file) as f:
        for line in f:
            line = line.strip()
            if (line[0] == '#'):
                continue
            compromised_relays.append(line)
    return compromised_relays