So it should look like this...

    response.content_disposition='attachment; filename="{name}.pem"'.format(name=name)