Using re.sub() to replace a sample with '%'s looks strange and causes a format string error if a matcher description contains "%s". This patch resolves this issue.
lg