Fix problems found by pylint

There is no Travis test right now because Travis does not support Python
3.4. I'll add this later. See travis-ci/travis-ci#1989