Update matrix.py

syntax error