Refactor utils,separate utils functions into three new py files.