readdition to api of python metrics section.