<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_member_info(object_name, filtertype='r', imagetype='p'):
 """ Query the ssois table for images of a given object. Then parse through for desired image type, filter, exposure time, and telescope instrument """


    # From the given input, identify the desired filter and rename appropriately                    Replace this?
    if filtertype.lower().__contains__('r'):
        filtertype = 'r.MP9601'  # this is the old (standard) r filter for MegaCam
    if filtertype.lower().__contains__('u'):
        filtertype = 'u.MP9301'

    # Define time period of image search, basically while MegaCam in operation
    search_start_date = Time('2013-01-01', scale='utc')  # epoch1=2013+01+01
    search_end_date = Time('2017-01-01', scale='utc')  # epoch2=2017+1+1

    print("----- Searching for images of object {}".format(object_name))

    image_list = []
    expnum_list = []
    ra_list = []
    dec_list = []

    query = Query(object_name, search_start_date=search_start_date, search_end_date=search_end_date)
    result = query.get()
    print(result)
    try:
        objects = parse_ssois_return(query.get(), object_name, imagetype, camera_filter=filtertype)
    except IOError:
        print("Sleeping 30 seconds")
        time.sleep(30)
        objects = parse_ssois_return(query.get(), object_name, imagetype, camera_filter=filtertype)

    print(objects)
    # Setup output, label columns
    if len(objects)>0:
        output = '{}/{}_object_images.txt'.format(_OUTPUT_DIR, object_name)
        with open(output, 'w') as outfile:
            outfile.write("{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n".format(
                "Object", "Image", "Exp_time", "RA (deg)", "Dec (deg)", "time", "filter", "RA rate (\"/hr)", "Dec rate (\"/hr)"))

        for line in objects:
            with open(output, 'a') as outfile:
                image_list.append(object_name)
                expnum_list.append(line['Exptime'])
                t_start = Time(line['MJD'], format='mjd', scale='utc') - 1.0 * units.minute
                t_stop = t_start + 2 * units.minute
                hq = horizons.Query(object_name)
                hq.start_time = t_start
                hq.stop_time = t_stop
                hq.step_size = 1 * units.minute
                p_ra = hq.table[1]['R.A._(ICRF/J2000.0']
                p_dec = hq.table[1]['DEC_(ICRF/J2000.0']
                ra_dot = hq.table[1]['dRA*cosD']
                dec_dot = hq.table[1]['dDEC/dt']
                try:
                    outfile.write("{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n".format(
                        object_name, line['Image'], line['Exptime'], p_ra, p_dec,
                        Time(line['MJD'], format='mjd', scale='utc'), line['Filter'], ra_dot, dec_dot))
                except Exception as e:
                    print("Error writing to outfile: {}".format(e))

    return image_list, expnum_list, ra_list, dec_list