Decorate error-prone praw API calls.

Also some formatting fixes with flake8.