def _GetPrimaryUser():
  return_code, stdout, unused_stderr = Exec(['/usr/bin/last', '-100'])
  if return_code == 0 and stdout:
    users = {}
    for line in stdout.splitlines():
      user = line.split(' ')[0]
      users[user] = users.get(user, 0) + 1
    users_list = users.keys()
    users_list.sort(cmp=lambda x, y: cmp(users[x], users[y]), reverse=True)
    return users_list[0]
  return ''
Load addon module return its create configuration object.
dataset/ETHPy150Open google/simian/src/simian/mac/client/flight_common.py/_GetPrimaryUser--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/base/__init__.py/init_addon