Fixes regression in 2e4ffe2537b408f50eb247bfc45c8e8ce16a23ac

It turns out that ast was not extraneous; it just wasn't noted as being
necessary, so PEP8 flagged it for removal.

Added note that the ast import must be present in order for the static
analysis code to function.
TestsListbox now sizes to fit the number of tests