Fix some pylint issues

Issues like:
- unnecessary semicolons
- missing spaces after comma
- missing spaces around operator
- bad indentation
- self has no member XY
- dangerous default value [] as arg 
- Attribute 'xy' defined outside __init__