fixed teardown_module

nose doesn't always pass 'module' argument to teardown_module functions