from datetime import datetime


def _print_out(out, level=0):
    """Prints an output formated to a console.
    
    Args:
        out (any): Output to print.
        level (int, optional): Tabulation level. Defaults to 0.
    """
    def to_str(value):
        if type(value) is datetime:
            return value.ctime()
        return str(value)

    prefix = level * "\t"

    if type(out) is list:
        for value in out:
            if type(value) in (list, dict):
                _print_out(value, level + 1)
            else:
                print(prefix + to_str(value))
        return
    
    if type(out) is dict:
        for key, value in out.items():
            if type(value) in (list, dict):
                print(prefix + to_str(key))
                _print_out(value, level + 1)
            else:
                print(prefix + "%s: %s" % (to_str(key), to_str(value)))
        return

    print(prefix + to_str(out))