Retrieves env vars and makes Python boolean replacements

def get(key, default=None):
    """Retrieves env vars and makes Python boolean replacements"""
    val = os.environ.get(key, default)
    
    if val == 'True':
        val = True
    elif val == 'False':
        val = False
    return val