May be you should use abc? (See baseconfig.py as an example)