def reorder_title(title, articles=('the',), separators=(',', ', ')):
 ltitle = title.lower()
 for article in articles:
  for separator in separators:
   suffix = (separator + article)
   if (ltitle[(- len(suffix)):] == suffix):
    return ((title[((- len(suffix)) + len(separator)):] + ' ') + title[:(- len(suffix))])
 return title

def reorder_title ( title , articles = ( 'the' , ) , separators = ( ',' , ', ' ) ) : ltitle = title . lower ( ) for article in articles : for separator in separators : suffix = ( separator + article ) if ( ltitle [ ( - len ( suffix ) ) : ] == suffix ) : return ( ( title [ ( ( - len ( suffix ) ) + len ( separator ) ) : ] + ' ' ) + title [ : ( - len ( suffix ) ) ] ) return title
reorder the title .