I think this is happening on pymongo new release: http://stackoverflow.com/questions/29517930/error-while-following-tumblelog-application-with-flask-and-mongoengine