Reduce pylint warnings.
Merge pull request #111 from boudewijn-tribler/bugfixes

Reduce pylint warnings.