I happened to know some Google3 tool that did exactly this.
/google/data/ro/projects/devtools/pyformat/pyformat -i --force_quote_type single -s 2 -r ~/chromiumos/src/third_party/hdctools/servo
https://crrev.com/c/978955 should did 90% of the job here.
Apparently #c2 command make method declaration looks bad. Here is the better command to use.
/google/data/ro/projects/devtools/pyformat/pyformat -i --force_quote_type single -s 2 --binpack_named_arguments -r ~/chromiumos/src/third_party/hdctools/servo
Comment 1 by tbroch@chromium.org
, Mar 23 2018