Use .format(**d) instead of .format_map(d) for portability to Python 2.