As an aside, for very good analysis of current Chess games (as well as older sagas around certain legends of the game), I heartily recommend checking out agadmator's Youtube channel[1].
It was tied to the beginning of Covid lockdowns as well. Chess has had a very strong year in terms of numbers coming to the game. Queen's Gambit seems to have exploded that again.
Not arguing that this could be used in an abusive relationship, but if we work on the basis that someone could install a similar program on their partner's phone that's not Google. There are a lot of pro's for the tracked person with the Google implementation.
Google email you quite frequently (I believe monthly?) to tell you that you are sharing your location and with whom.
You can disable it at any time. Obviously disabling such a feature in an abusive relationship may not be an option.
I think you are misunderstanding. The secret does not need to be hardcoded in the python file. If it's read in from an environment variable or some other external source, it will also be in the pyc
[1] https://www.youtube.com/c/AGADMATOR