dir returns a list of the attributes and methods of any object: modules, functions, strings, lists, dictionaries...
dir(li) #li=[]
li is a list, so dir(li) returns a list of all the methods of a list.the returned list contains the names of the methods as strings, not the methods themselves
['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
dir( odbchelper)
returns a list of all kinds of stuff defined in the module, including built-in attributes, like __name__, __doc__, and whatever other attributes and methods you define
['__builtins__', '__doc__', '__file__', '__name__', 'buildConnectionString']