MongoDB GridFS handler in Python