Updated python matrix doc