remove unneeded imports
tidy utils.py
remove unneeded imports
small fixes