Adding write capabilities to the NumPy wrapper for Matrix