def transpose(matrix):
    """ Transpose a matrix (defined as a list of lists, where each sub-list is a row in the matrix) """
    # This feels dirty somewhow; but it does do exactly what I want
    return list(zip(*matrix))