R. David Murray added the comment: It looks like your 'name' variable holds an integer, not a string giving a header name. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue28881> _______________________________________