Make `fix_headers.py` script compatible with Python 3.
Allows enabling/disabling parts of the editor and storing/loading profiles for that.