In the script action: Get around a bug in that's been fixed in Python 2.7 but not Python 2.6.
See: http://bugs.python.org/issue6988
Fixes #4256.
Merge pull request #4269 from jphalip/issue-4256

In the script action: Get around a Python bug.