def _instance_name(instance):
 return getattr(instance, 'OS-EXT-SRV-ATTR:instance_name', None)

def _instance_name ( instance ) : return getattr ( instance , 'OS-EXT-SRV-ATTR:instance_name' , None )
shortcut to get instance name .