Added countdown function
transition from misc.py to utils lib complete