PEP8 + linting

Unused imports, mixed tabs and spaces, (most of the) long lines
I'm not going to delay the pull request because it's basically a personal preference, but I generally don't like backslashes for line continuations. You can instead put the operation in brackets and then the operation can span multiple lines.

```python
oauth_url = ('foo'+
             bar)
```