A bunch of codestyle, pylint, and other code-related fixes