Merge pull request #2541 from dengemann/fix_dot

[MRG]: fix tests, centralize warnings and reset `__warningregistry__`
py3k syntax