len(pycimage) and pycimage[idx] work