Fixed missing "self"
Fixed pass value
Avoid builtin name
Avoid using builtin "sum" as variable name
Fixed indentation (flake8)
Flake8
Fixed missing self
Flake8
Merge pull request #882 from bmorg/quantifiedcode

Fixing some minor issues (testing quantifiedcode.com)