ENH: Improve code coverage script

Change-Id: Id530d6e9c12cc0098931bd5c9a06924a15935579
Merge topic 'CodeCoverageScript' into master

0e9cfd9b ENH: Improve code coverage script