def gidcounter():
 global GCOUNT
 GCOUNT += 1
 return ('%s-%s' % (time.strftime(DATESTRING), GCOUNT))

def gidcounter ( ) : global GCOUNT GCOUNT += 1 return ( '%s-%s' % ( time . strftime ( DATESTRING ) , GCOUNT ) )
makes globally unique ids .