Fix spark to use string methods instead of the string module (Py3k fix).