Instead of assuming the pid field is 4 bytes long, take its length from the header.
tree9fc92626163b321996e87126e98d30a2587b6809
-rw-r--r-- 6 .gitignore
-rw-r--r-- 17989 COPYING
-rw-r--r-- 152 MANIFEST.in
-rw-r--r-- 1172 NEWS
-rw-r--r-- 677 README
-rw-r--r-- 1211 THANKS
drwxr-xr-x - bin
-rwxr-xr-x 550 install-rpm.sh
-rw-r--r-- 3350 iotop.1
-rwxr-xr-x 303 iotop.py
drwxr-xr-x - iotop
-rwxr-xr-x 594 release.sh
-rw-r--r-- 93 setup.cfg
-rwxr-xr-x 573 setup.py