import fractions L = dir(fractions) L = [x for x in L if x[0] != "_"] L = [x for x in L if x == x.lower()] print L