Update configFunction.py

Cleaned code a bit