def find_modified_max_argmax(L, f): L = [f(x) for x in L if type(x) == int] return L and (max(L), L.index(max(L))) or ()