typeerror cannot unpack non iterable nonetype object