From http://code.activestate.com/recipes/553262-list-classes-methods-and-functions-in-a-module/