TS: errno reading and converting to OSError

Two strategies, one only for Python 2.6 and above, the other generic (commented out).
TS: Decided on PyErr_SetFromErrno i.s.o. get_errno().

Try staying either in C or Python when possible.  Anticipate c-extension i.s.o. ctypes when implementation is feature-complete and well tested.