With zip(*g) syntax, you are doing list unpacking. The following code:
g = [1, 2, 3, 4, 5, 6]
zip(*g)
Is equivalent to:
zip(1, 2, 3, 4, 5, 6)
Since g list contains int values (but not iterable collection) you get an error.
notice: the zip function can have a variable list of parameters.
So, to fix your problem you need to write:
zip(g)
Remember that, in Python 3, zip return a generator. To get a list you need to use the list function:
>>> list(zip([1, 2, 3, 4, 5, 6]))
[(1,), (2,), (3,), (4,), (5,), (6,)]