Update omr.py

changed assert >0 images to raise exception (assert doesnt always work)