Linear Algebraic Representation in Python