Document class is generally useful enough to move into the bson module as a replacement for BSONObject.