Please [PEP-8](http://www.python.org/dev/peps/pep-0008/)-ify this: no camelCase, imports at the top of the module, descriptive names (`ioctl_GWINSZ` needs improvement) .