from pyhamtools.qsl import get_lotw_users lotw = get_lotw_users() print lotw # pipe output into file