def _format_dict(d):
    """Takes a dictionary and returns it in a pretty formatted string
    :param d: dict
    :return pretty formatted dictionary
    :rtype str
    """
    return '\n'.join('{}: {}'.format(k, v) for k, v in d.items())