for a given scope how could i obtain a list of functions/methods. dir() is too general. either this will involve parsing the output of dir() or using the access to the compiler module that I can't figure out.