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