You can use foo.__dict__
somehow like this:
for name, val in foo.__dict__.iteritems(): # iterate through every module's attributes
if callable(val): # check if callable (normally functions)
val() # call it
But watch out, this will execute every function (callable) in the module. If some specific function receives any arguments it will fail.
A more elegant (functional) way to get functions would be:
[f for _, f in foo.__dict__.iteritems() if callable(f)]
For example, this will list all functions in the math
method:
import math
[name for name, val in math.__dict__.iteritems() if callable(val)]
['pow',
'fsum',
'cosh',
'ldexp',
...]