http://scotdoyle.com/python-epoll-howto.html