python: explicitly define header entries as longs
python: do not hung on errors