def prepare_key(*args):
 key_quote = []
 for key in args:
  if isinstance(key, six.integer_types):
   key = str(key)
  key_quote.append(quote(key))
 return ':'.join(key_quote)

def prepare_key ( * args ) : key_quote = [ ] for key in args : if isinstance ( key , six . integer_types ) : key = str ( key ) key_quote . append ( quote ( key ) ) return ':' . join ( key_quote )
prepares names for rows and columns with correct separator .