<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_family_info(familyname, filtertype='r', imagetype='p'):
 """ Query the ssois table for images of objects in a given family. Then parse through for desired image type, filter, exposure time, and telescope instrument """


    # establish input
    family_list = '{}/{}_family.txt'.format(_FAMILY_LISTS, familyname)

    if os.path.exists(family_list):
        with open(family_list) as infile:
            filestr = infile.read()
        object_list = filestr.split('\n')  # array of objects to query
    elif familyname == 'all':
        object_list = find_family.get_all_families_list()
    else:
        object_list = find_family.find_family_members(familyname)

    for obj in object_list[0:len(object_list) - 1]:  # skip header lines
        get_member_info(obj, filtertype)