trace and map package testing for python