rm reduntant code between generate.py and font generator