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