MAINT: Synch doc and code.

The whole module could have some love, as all the code is highly repetitive.
PY3: replace methods from removed module (string).