Adding support for viewing and partitioning matrices in Python interface