def decode_dbkey(dbkey):
 if (':' in dbkey):
  return dbkey.split(':')
 else:
  return (None, dbkey)

def decode_dbkey ( dbkey ) : if ( ':' in dbkey ) : return dbkey . split ( ':' ) else : return ( None , dbkey )
decodes dbkey and returns tuple .