Fix PEP8 violations in `apt.py`

Courtesy `pep8` linter