Python MO images analysis