from string import maketranstable = maketrans('cs', 'kz')print 'this is an incredible test'.translate(table, ' ')