Moving common translator function to util.py
corrections to tvd_kernel's ACCS