Download attach image from doctype using frappe-client

I have a DocType Student with a ID Picture field (attached image). How can I download the image? Any tips?

params = {"doctype": "Student",  "fields": "*"}
client = FrappeClient("http://localhost:8000", 'device@localhost', 'xxxxxxxxxx')
students = client.get_api("frappe.client.get_list", params)
for student in students:
    print student

I was able to solve this

                r = client.session.get('http://localhost:8000'+str(student[8]), stream=True)
                if r.status_code == 200:
                    with open("/home/sample/hello.jpg", 'wb') as f:
                        r.raw.decode_content = True
                        shutil.copyfileobj(r.raw, f)