Fix pep8/pep257 warnings. Fix minor queue bug.

Signed-off-by: Kalman Olah <hello@kalmanolah.net>