Load all benchmarks from a given module

def load_from_module(self, module):
        '''Load all benchmarks from a given module'''
        benchmarks = []
        for name in dir(module):
            obj = getattr(module, name)
            if (inspect.isclass(obj) and issubclass(obj, Benchmark)
                    and obj != Benchmark):
                benchmarks.append(obj)
        return benchmarks