Fixes Python 3 setblocking problem. Closes celery/celery#1627