How To Implement Matrix In Python