fixed lib.call for python2-3 compatability