Fix plugin_test exception on six.PY2

Replace explicit test for six.PY2 with try/exception handling of
StringIO import.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>