Using Python with exec() for the configuration