def render_user(userinfo, template="<a href='mailto:{0}'>{1}</a>"):
    """ Renders a HTML link for a given ``userinfo`` tuple;
        tuple contains (email, name) """
return template.format(userinfo)
userinfo = 'matt.rez@where.com', 'matt rez'
print(render_user(userinfo))
template in python