def extract_passport_list(lines):
    """ Gets a list of passports from the input

    :param lines: input
    :return: list of passports
    """
    passports = []
    current_passport = {}
    for line in lines:
        if line == '\n':
            passports.append(current_passport)
            current_passport = {}
        else:
            fields = line.split(' ')
            for field in fields:
                kv = field.split(':')
                current_passport[kv[0]] = kv[1].split('\n')[0]

    return passports