Make the get_random_header a jinja function.