added utils.py, containing common functions