Fix PEP8: E121 continuation line indentation

is not a multiple of four
Fix PEP8: E122 continuation line missing

indentation or outdented
Fix PEP8: E123 closing bracket does not match

indentation of opening bracket's line
Fix PEP8: E124 closing bracket does not match

visual indentation
Fix PEP8: E125 continuation line

does not distinguish itself from next logical line
Fix PEP8: E126 continuation line over-indented

for hanging indent
Fix PEP8: E127 continuation line over-indented

for visual indent
Fix PEP8: E128 continuation line under-indented

for visual indent
Fix PEP8: E502 the backslash is redundant

between brackets
Fix Pylint: C0103: (invalid-name)

Command.handle: Invalid name "d" for type variable
(should match [a-z_][a-z0-9_]{2,30}$)
Fix Pylint: W0110: (deprecated-lambda)

divide_chemical_expression: map/filter on lambda could be replaced by
comprehension
Fix Pylint: W0201: attribute-defined-outside-init

LoginEnrollmentTestCase.setup_user: Attribute 'user' defined outside __init__
Remove orphaned code
Lower PyLint threshold to 4600 violations
Lower PEP8 threshold to 15 violations