def _is_uuid(zone):
 return ((len(zone) == 36) and (zone.index('-') == 8))

def _is_uuid ( zone ) : return ( ( len ( zone ) == 36 ) and ( zone . index ( '-' ) == 8 ) )
check if zone is actually a uuid .