Make it possible to pass in a retry object
deprecation warning for old retry kwargs