#NEWLINE# def _safe_object_name( self , object_name ) : #NEWLINE# #INDENT# ' Add a UUID if to a object name if it exists. To prevent overwrites\n        :param object_name:\n        :return str:\n        ' #NEWLINE# extension = get_file_extension ( object_name ) #NEWLINE# file_name = os . path . splitext ( object_name ) [ 0 ] #NEWLINE# while ( object_name in self ) : #NEWLINE# #INDENT# uuid = shortuuid . uuid ( ) #NEWLINE# object_name = ( '%s__%s.%s' % ( file_name , uuid , extension ) ) #NEWLINE# #UNINDENT# return object_name