def show_calendar(month, date, rel):
 month = random_rainbow(month)
 date = ' '.join([cycle_color(i) for i in date.split(' ')])
 today = str(int(os.popen("date +'%d'").read().strip()))
 printNicely(month)
 printNicely(date)
 for line in rel:
  ary = line.split(' ')
  ary = lmap((lambda x: (color_func(c['CAL']['today'])(x) if (x == today) else color_func(c['CAL']['days'])(x))), ary)
  printNicely(' '.join(ary))

def show_calendar ( month , date , rel ) : month = random_rainbow ( month ) date = ' ' . join ( [ cycle_color ( i ) for i in date . split ( ' ' ) ] ) today = str ( int ( os . popen ( "date +'%d'" ) . read ( ) . strip ( ) ) ) printNicely ( month ) printNicely ( date ) for line in rel : ary = line . split ( ' ' ) ary = lmap ( ( lambda x : ( color_func ( c [ 'CAL' ] [ 'today' ] ) ( x ) if ( x == today ) else color_func ( c [ 'CAL' ] [ 'days' ] ) ( x ) ) ) , ary ) printNicely ( ' ' . join ( ary ) )
show the calendar in rainbow mode .