Pretty elegant solution :)

Two things, though: [`warnings.warn`](http://docs.python.org/2/library/warnings.html#warnings.warn) should be called with `category=DeprecationWarning` and its `stacklevel` argument could be set to hide the helper function from the user.