Drop max-complexity to 47

Now that we fixed the two worst offenders, drop the mccabe
max-complexity setting in flake8 to 47.

Add note explaining how to generate a list of functions that are too
'complex'.

Change-Id: I44000e9e95c457ae9000c428460b5825d8ad3f92
Merge "Drop max-complexity to 47"