Fix broken threshold comparison

They must be interpreted as integers in order for the comparisons
to work.
PEP8 style issues fixed

Well, I muted the "E501 line too long (82 > 79 characters)"
ones since they don't belong in 2014.
Showing all queues that are critical/warning/ok

Previously, it showed the first that failed.