[Py3] f.fileno may raise io.UnsupportedOperation.
flakes
threading.Event is a class for python 3.3+ but not for python 3.2
Merge branch '3.0'

Conflicts:
	celery/contrib/migrate.py
	celery/utils/threads.py