кусок кода:
group = open("/etc/group")
for g in group.readlines():
gname,x,gid,users = g.split(":")
usr1,usr2,usr3 = users.split(",")
print gname,":",users.strip()
group.close()
else:
print "all good"
вывод:
File "./password.py", line 17, in <module>
usr1,usr2,usr3 = users.split(",")
ValueError: need more than 1 value to unpack