Allow generator as input to utils.print_list.

Once the table is built, the length of the prettytable's internal array
is checked rather than re-iterrating over the input.

Adds tests for utils.print_list with list and generator input.

Change-Id: I4c0bd08bf0c943de42ad90d255a2d831c2e98828
Fixes: bug #1180059
Add .coveragerc file to show correct code coverage

Change-Id: I85eaa7f96c9ebf82984356cd08f2d05a0915e0e5
Merge "Add .coveragerc file to show correct code coverage"
Merge "Allow generator as input to utils.print_list."