Add next_raw in Matrix.py

Signed-off-by: Kiril Nesenko <knesenko@redhat.com>