Stripping membranes?

Does this hurt? Does it really work? Any dangers of it? My doctor said next week we can do this (I'll be 39 weeks). Please share any experiences. Thanks!