def course_and_time_based_filename_generator(course_id, base_name):
 return u'{course_prefix}_{base_name}_{timestamp_str}'.format(course_prefix=course_filename_prefix_generator(course_id), base_name=get_valid_filename(base_name), timestamp_str=datetime.now(UTC).strftime('%Y-%m-%d-%H%M%S'))

def course_and_time_based_filename_generator ( course_id , base_name ) : return u'{course_prefix}_{base_name}_{timestamp_str}' . format ( course_prefix = course_filename_prefix_generator ( course_id ) , base_name = get_valid_filename ( base_name ) , timestamp_str = datetime . now ( UTC ) . strftime ( '%Y-%m-%d-%H%M%S' ) )
generates a filename based on the current time and the supplied filename .