Start moving everything to the new API

Well… there is always https://docs.python.org/2/library/warnings.html#temporarily-suppressing-warnings

That's not thread safe though!