Committing Michael's patch which adds numpy support for interacting with local matrices