def token_bytes(nbytes=None):
 if (nbytes is None):
  nbytes = DEFAULT_ENTROPY
 return os.urandom(nbytes)

def token_bytes ( nbytes = None ) : if ( nbytes is None ) : nbytes = DEFAULT_ENTROPY return os . urandom ( nbytes )
return a random byte string containing *nbytes* bytes .