def swappable_dependency(value):
 return SwappableTuple((value.split('.', 1)[0], '__first__'), value)

def swappable_dependency ( value ) : return SwappableTuple ( ( value . split ( '.' , 1 ) [ 0 ] , '__first__' ) , value )
turns a setting value into a dependency .