Pu oauth2 upgrade

1: D100 Docstring missing
24: D200 One-line docstring should not occupy 3 lines