def sortNTopByVal(tosort, top, descending=False):
    """
    Sort dictionary by descending values and return top elements.
	Return list of tuples.
    """
    return sorted([(k, v) for k, v in tosort.items()], key=lambda x: x[1], reverse=descending)[:top]