Fix remaining PyLint errors

Fixes #72

This also enables PyLint during CI.
Merge pull request #73 from thrive-refugee/fix-undefined-variables

Fix remaining PyLint errors. Resolves #72.