added format_license() in core.py