First pass at Module.module_function

Wasn't aware of this method. Seems old and crufty.