Added writing-function to confmanager.py