Update utils.py

removed extract code.