Update configFunction.py

Coding Python at school ftw! Added better way of removing cache and a few other things