ph and trace packages in python + similaritymatrix rewrite