Fix several issues found by pylint

Includes fixes for:
- bad indentation
- wrong continued indentation
- old-style-class
- bad and trailing whitespaces
- import only what's needed
- unused imports
- unused variables
- superfluous-parens
- multiple-statements in one line
- too long lines

Also included:
- use UNIX instead of Windows line endings
- add .gitignore
same with these ones:

    Line: 294 Col: 14  ==> E121 continuation line indentation is not a multiple of four
    Line: 296 Col: 14  ==> E127 continuation line over-indented for visual indent