Python 2 compatible version of Canberra test list generator.