apply nontrivial changes suggested by autopep8 aggressive
Summary:
autopep8 has an aggressive mode that I'd like to enable,
mostly it makes more line wrapping changes but it also does
some code transformations. I've separated out the nontrivial
changes here, plus one whitespace change that it doesn't do
quite right (the print in linearize-data).
Test Plan:
ninja check-all
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D5215