Code for writing a generic Python program with JSON configuration.