Set write encoding on open rather than encoding each line
-rwxr-xr-x 1647 keysymdata.py
-rwxr-xr-x 8976 klc2xkb