Fix issue with python coverage tests