def dict_repr(some_dict, pre="", level=0):
    """Makes a nice representation of a nested dict."""

    outstr = ""
    n = 1
    N = len(some_dict)
    for k, v in some_dict.items():
        corner = "├╴ " if n < N else "└╴ "
        straight = "│  " if n < N else "   "

        if isinstance(v, dict):
            outstr += pre + "{}{}\n".format(corner, k)
            outstr += dict_repr(v, pre + straight, level + 1)
        else:
            outstr += pre + "{}{}: {}\n".format(corner, k, type(v))

        n += 1
    return outstr