added locate.  more python 3 fixes