type(li) # type can take a variable and return its datatype.<type 'list'>
type(odbchelper) # type also works on modules.
type(odbchelper) == types.ModuleType #You can use the constants in the types module to compare types of objects