def get_last_day(dt):
 return (get_first_day(dt, 0, 1) + datetime.timedelta((-1)))

def get_last_day ( dt ) : return ( get_first_day ( dt , 0 , 1 ) + datetime . timedelta ( ( - 1 ) ) )
returns last day of the month using: get_first_day + datetime .