shouldn't it be '{key}.asc'.format(key=key) ?