dev-python: add flake8 and mccabe

Change-Id: I1fe8629a4c2094f71640d4e43644527498e9a80c