Create util.py to include common functions

Added logging module