Python Matrix library