fixed errno problem

I found bad behaviour with Queue.Queue in my program. Somewhere in threading magic python interpreter set errno to EAGAIN and inotify had stopped working.
According to man 3 errno:
"successful return can be distinguished from an error return by setting errno to zero before the call, and then, if the call returns a status that indicates that an error may have occurred, checking to see if errno has a nonzero value."