Improve config system to standard python library