trial wrap for python