fixed utilities to work with Pyhon3