yes that would be nice
i was searthing for the same feature now but i coulnd find it
tryed to send method dhcpd::listMethods but nothing

then i realized that it just includes the specific module and it executer any function from there!
so the methods are modulename::function name from modulename/modulename-lib.pl

unfortunately dhcpd::get_subnets_and_hosts stucks somewere in tokenize_file function :-(