@Serg Copied new script, run it, I get a warning:
lks-indicator.py:39: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
and I only get a broken icon.