def _loadfile(filename):
    """Returns a list of lines from `filename`"""
    with open(filename, 'r') as fd:
        lines = filter(lambda x: x,
                       map(lambda x: x.strip(), fd.readlines()))
    return lines