Implementing config singleton, modifying existing code to comply with PEP8.