Fix utils and tests imports for python3