Pu oauth2 upgrade

286: D202 No blank lines allowed *after* function docstring, found 1
308: D202 No blank lines allowed *after* function docstring, found 1