Fixed tearDownModule in python3