support bson from pymongo as well as the standalone bson package