#!/usr/bin/env python

from os import popen
from re import split
from string import strip

f = popen('who', 'r')
for eachLine in map(strip, f.readlines()):
    print split('\s\s+|\t', eachLine)
f.close()
