pep8 fixes

- E201 whitespace after '('
- E201 whitespace after '['
- E202 whitespace before ')'
- E202 whitespace before ']'
- E203 whitespace before ':'
pep8 fixes

- E211 whitespace before '('
pep8 fix

- E271 multiple spaces after keyword
pep8 fix

- E301 expected 1 blank line, found 0
pep8 fixes

- E302 expected 2 blank lines, found 0
- E302 expected 2 blank lines, found 1