Attempting to fix python metrics tests.