Python script to draw a matrix passed through Socket TCP