add import putFont in tools.py