Seperate helper functions to util.c
Revert "Add #tox-dev notification for travis."

This reverts commit 07ea1b8096e33cd801ccbb9422bbddfb5b5fac63.