adding comment about required version of mongodb to use the roles param
adding fixes to support older versions of mongo (and pymongo) as well as new versions