Fixes for pylint issues

- remove unnecessary semicolons
- add missing space
- fix bad indention
- fix naming of a local variable
- fix naming of global variables/constants
- fix function name