Added ConfigManager to preserve some values. Fixes #221

Thank you for adding exceptions handling, but this is not sufficient. In Python 3, at least OSError and PermissionError (in case the file can not be created) can be raised. Please see documentation of ``open()`` https://docs.python.org/3/library/functions.html?highlight=open#open