pep8 fix

Fixed:

1. remove whitespace
2. raise Error, message is deprecated.

Not fixed:

1. continued line
2. long line