def _wrap(text, color, reset='\033[0m'):
    """ wrap text between color and reset, unless color is None, then return text """
    if color:
        return '\033[%sm%s%s'%(color, text, reset)
    else:
        return text