Matrix Multiplication In Python User Input Code