def status_log(func, message, *args, **kwargs):

    print(message)
    log = func(*args, **kwargs)

    if log:
        out = []

        for line in log.split('\n'):
            if not line.startswith('#'):
                out.append(line)
        print(black('\n'.join(out)))
Executes a callable with a header message.
dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/status_log