py3k compatibility patch

http://docs.python.org/release/3.1.5/library/string.html