Some string comparison demos ported to Python from Lucene.