#!/usr/bin/env python


def config():
    return {
        'is-oracle': True,
        'version': 'oracle-java8',
    }


#!/usr/bin/env python
from collections import namedtuple


JavaConfig = namedtuple('JavaConfig', ['is_oracle', 'version'])


def config():
    return JavaConfig(
        is_oracle=True,
        version='oracle-java8',
    )


Switch from dictionary to namedtuple