Suppose I have the following numpy array of strings:
a = numpy.array([\'apples\', \'foobar\', ‘bananas’, \'cowboy\'])
I would like to generat