Update chuck_util_functions.py

woah. seems to work nicely, but not tested extensively yet.