Use pkg_resources.parse_version to check pymongo version.