Added PEP-8 linting

Added a check make target which tests and then lints using flake8; additionally, switched some tests from

```python
self.assertTrue(x in y)
```

to

```python
self.assertIn(x, y)
```