modified black_template.py