Python implementation of ST-Matching without temporal analysis