def tflip(tup):
    """
    Flips tuple elements.
    This is useful for list to screen coordinates translation.
    In list of lists: x = rows = vertical
    whereas on screen: x = horizontal
    """
    return (tup[1], tup[0])